﻿using DomainModel.Ninject;
using EsbMonitor.Ninject;
using Ninject;
using NServiceBus;

namespace DbTest
{
    public class Initializer : IWantToRunAtStartup
    {
        #region IWantToRunAtStartup Members
    
        public void Run()
        {
            if (KernelContainer.Kernel == null)
            {
                KernelContainer.Kernel = new StandardKernel();
    
                KernelContainer.Kernel.Load(typeof (DataLayerNinjectModule).Assembly);
            }
        }
    
        public void Stop()
        {
        }
    
        #endregion
    }
}